package generic;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;


/**
 * @package generic
 * @Class Test
 * @Description TODO
 * @Author zhangxinhua
 * @Date 19-10-30 下午3:30
 */
public class Test {
    private static Logger logger = LogManager.getLogger(Test.class);

    public static void main(String[] args) {
        Generic<Integer> first = new Generic<>(123);
        Generic<Number> second = new Generic<>(123);
        showKeyValue(first);
        showKeyValue(second);
    }

    public static void showKeyValue(Generic<?> obj) {
        logger.info(obj.getKey());
    }

}
